<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>上机练习2</title>
</head>
<body>
     <style>
        h1{
            width: 300px;
            height: 200px;
            background-color: orange;
            text-align: center;
           line-height: 200px;
           margin: 100px;
           font-size: 22px;
           color: #fff;
           border: 100px solid rosybrown;
        
         }
     </style>
     
     <script>
     
            document.write("<h1>努力学习JavaScript</h1>");
            
     </script>
</body>
   </html>